<%@page import="java.sql.Date"%>
<%@page import="Model.*"%>
<%@page import="Controller.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<%
    controller_DoanTau tt = new controller_DoanTau();
    model_DoanTau doanTau = new model_DoanTau();
    
    doanTau.setMADT(request.getParameter("txtMADT"));
    doanTau.setTENDT(request.getParameter("txtTENDT"));
    doanTau.setHANGSX(request.getParameter("txtHANGSX"));
    doanTau.setNGAYVANHANH(Date.valueOf(request.getParameter("txtNGAYVH")));
    doanTau.setLOAITAU(request.getParameter("txtLOAITAU"));
            
    tt.Them_DoanTau(doanTau);    
    response.sendRedirect("../frmDoanTau.jsp");
%>
